﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WoChu.RfClient.Common
{
    public partial class BaseForm : Form
    {
        public BaseForm()
        {
            InitializeComponent();
        }

        private void BaseForm_KeyDown(object sender, KeyEventArgs e)
        {           
            if (e.KeyCode == Keys.F10)
            {
                try
                {
                    DialogResult result = WoChu.CF.BaseFrame.Util.MessageBoxEx.Question("确定退出?");
                    if (result == DialogResult.Yes)
                    {
                        //BaseUIRule.NewInstance.LogOutUser();
                        //LoginBean.Instance.loginForm.Show();
                        this.Close();
                        this.Dispose();
                    }
                }
                catch(Exception ex)
                {
                    WoChu.CF.BaseFrame.Util.MessageBoxEx.Show(ex);
                }
            }
        }
    }
}